package cn.huaqingcheng.tianshu.application;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * AppMain
 */
@EnableAsync
@EnableScheduling
@SpringBootApplication(
        proxyBeanMethods = false,
        scanBasePackages = "cn.huaqingcheng.tianshu"
)
@ConfigurationPropertiesScan("cn.huaqingcheng.tianshu")
@MapperScan(
        {
                "cn.huaqingcheng.tianshu.infrastructure.start.mapper",
                "cn.huaqingcheng.tianshu.infrastructure.uc.mapper",
                "cn.huaqingcheng.tianshu.infrastructure.sys.mapper"
        }
)
public class AppMain {

    public static void main(String[] args) {
        SpringApplication.run(AppMain.class, args);
    }

}
